package org.linlinjava.litemall.db.dao.logistics;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.linlinjava.litemall.db.domain.AgedmallDeliveryManInfo;
import org.linlinjava.litemall.db.domain.AgedmallStore;
import org.linlinjava.litemall.db.vo.logistics.LogisticsGoodsTypeData;
import org.linlinjava.litemall.db.vo.store.StoreGoodsBack;

import java.util.List;

/**
 * @author wj
 * @date 2021/11/5 9:52
 */
@Mapper
public interface LogisticsMapper {
    List<AgedmallDeliveryManInfo> getDeliveryManByStoreIdAndRole(@Param("storeId") Long storeId, @Param("role") Integer role);

    Integer selectCabinetMissionByRfid(@Param("rfid") String rfid, @Param("type") Integer type);

    List<StoreGoodsBack> getStoreGoodsIdList(@Param("storeId") Integer storeId, @Param("keySearch") String keySearch);

    List<AgedmallDeliveryManInfo> getDeliveryManByCloudIdAndRole(@Param("cloudId") Long cloudId, @Param("role") Integer role);

    List<LogisticsGoodsTypeData> selectGoodsTypeByOrderGoodsId(@Param("ids") List<Integer> ids);

    AgedmallStore selectStoreByOrderGoodsId(@Param("id")Integer id);
}
